import type { Equal, Expect } from "@type-challenges/utils";

type Example = Pick<Readonly<Todo1>, "title">;
const todo: Example = {
  title: "",
};

// 以下代码会报错
// todo.title = "";

type cases = [Expect<Equal<MyReadonly<Todo1>, Readonly<Todo1>>>];

interface Todo1 {
  title: string;
  description: string;
  completed: boolean;
  meta: {
    author: string;
  };
}
